package com.coffee.order.service.sku.dao;

import com.coffee.order.api.sku.query.NotifyOrderParamQuery;
import com.coffee.order.service.sku.bean.NotifyOrderParam;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface NotifyOrderParamDao {
	public NotifyOrderParam findById(Integer id);
	
	public NotifyOrderParam findByIdForUpdate(Integer id);
	
	public List<NotifyOrderParam> findByIds(@Param("idList") List<Integer> idList);

	public Integer count(@Param("param") NotifyOrderParamQuery param);

	public List<NotifyOrderParam> page(@Param("param") NotifyOrderParamQuery param, @Param("offset") Integer offset, @Param("rows") Integer rows);

	public NotifyOrderParam findFirst(@Param("param") NotifyOrderParamQuery param);

	public Integer insert(NotifyOrderParam param);

	Integer insertBatch(List<NotifyOrderParam> list);

	public void updateById(@Param("param") NotifyOrderParam param);
	
	public Integer deleteById(Integer id);
	
	public Integer deleteByIds(List<Integer> idList);
	
}